home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 32
/
Aminet 32 (1999)(Schatztruhe)[!][Aug 1999].iso
/
Aminet
/
comm
/
tcp
/
hserv.lha
/
hserv
/
cgi-bin
/
fileServ.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1999-05-24
|
638b
|
37 lines
/* fileServ.rexx */
parse arg "file="file
file=decode(file)
eol='A'x
say "Content-Type: text/html"eol
if exists("/htdocs/archive/"file) then do
say '
<HTML>
<HEAD><TITLE>'file'</TITLE></HEAD>
<SCRIPT LANGUAGE="JavaScript">
window.location.href = "/archive/'file'";
</SCRIPT>
</HEAD>
<BODY>
Downloading' file'<br>
<NOSCRIPT>
You need a JavaScript enabled browser to use this cgi.
</NOSCRIPT>
<br><A HREF="/form.html"><back></A>
</BODY>
</HTML>'
end
else do
say '
<HTML>
<HEAD>
<TITLE>File Server</TITLE>
</HEAD>
<BODY>
File:' file 'does not exist on this server<br><br><A HREF="/form.html"><back></A>
</BODY>
</HTML>'
end